package com.itheima.health.controller;
/*
 *@description 
 com.itheima.health.controller
 *@create 2023/9/4 
*/


import com.itheima.health.entity.Result;
import com.itheima.health.pojo.Order;
import com.itheima.health.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mobile/order")
@Slf4j
public class MobileOrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/findById")
    public Result findById(Integer id) {
        // 查询数据
        Order order = this.orderService.findById(id);



        // 封装返回结果

        return null;
    }
}
